package com.example.Objects.PO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;


@Data
@TableName("m_manage_office")
public class MManageOfficePO implements UserDetails {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("office_name")
    private String officeName;

    @TableField("municipality_id")
    private int municipalityId;

    public MManageOfficePO(String officeName, int municipalityId) {

        this.officeName = officeName;
        this.municipalityId = municipalityId;
    }

    public MManageOfficePO() {

    }

    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public String getPassword() {
        return null;
    }

    @Override
    public String getUsername() {
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        return false;
    }

    @Override
    public boolean isAccountNonLocked() {
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return false;
    }

    @Override
    public boolean isEnabled() {
        return false;
    }
}
